<?php

class Home extends Controller {

	function Home()
	{
		parent::Controller();
	}
		
	function index()
	{
		//cek nih user udah login apa blom, kalo blom lempar ke halaman login
		//if ($this->session->userdata('analisa') == TRUE){
			
		//}
			if ($this->session->userdata('login') == FALSE)
			{
				redirect('login');
			}
		//akhir cek
		
		// Load default view
		
		$data['title'] = 'Home';
		$data['h2_title'] = 'Home';
		$data['main'] = 'home/home';
			
		$this->load->view('base', $data);
			
	}

}
